-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix for not receiving notification #11575
Conversation
That can't work as you get out of the party here: https://github.com/joomla/joomla-cms/pull/11575/files#diff-389d7f2bc20fb10dd7192b69423c7ba6R51
This change is not needed as https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/updater/updater.php#L115
|
No, it is about the 4th parameter. It needs to be true to change the condition GT into GE. |
Please double check this line: This can never be true with $cache_timeout == 0 ;) So you will never reache the line you changed with cachetimeout == 0 The 4th paramenter is for the reinstall feature and needs to be in com_joomlaupdate to prodvide the reinstall function. Here it is not correct as if it is true it allways return a update object and if you are on the last version you get the current version back which is not correct in this case here. |
This is not about $cache_timeout = 0 ! @wilsonge already explained why that doesn't work as expected. |
Yes and that works great on all sites i manage without any change 😄 And i don't know anyone who have issues with it nor i can reproduce issues with it. 😄 |
It didn't on mine, which is the reason for debugging it. On the forum there are also reports of not receiving them. I traced it back to this situation and the solution works. |
Currently debugging my third clean install. Received the first mail. Changed timeout from 6 to 1 and from hours to minutes. Don't receive any furter mails. |
Where did you change the value from hours to minutes? In code where? Did you clear the update cache and the last check time? Can you give me a step by step way to reproduce the problem? |
Change hours to minutes: line 44 of plugin:
Step by step way to reproduce: refresh after a minute. used the control panel in the backend. But, as you know with this plugin it can be any screen, frontend or backend doesn't matter! |
Just frontend. I will double check that in the frontend tomorrow. |
No, it is not just frontend! |
Hmm correct my memory fouls me. Let me double check that tomorrow. |
Sorry for you, but larded both installer and notification with JLog::add statements to find the cause. Found out it was comparing 3.6.2 with 3.6.2. |
Ok so you agree with me that we don't need this change? |
No, comparing 3.6.2 with 3.6.2 on a 3.6.0 site results in NO mail. When 4th parameter TRUE you get a mail. So, of course this is needed. Wouldn't spent so much time here, when not needed. |
Where it compare 3.6.2 and 3.6.2 on a 3.6.0 webseite? That is wrong but if Joomla thinks you are on the last version you should never get a mail! Please post your system information page and doubel check the Database version (Extensions -> manage -> database) I have tested the current plugin successful please follow this steps and let me know what you did different:
The other way arround
Please test this without any code change. The other test (with this patch applyed) results in the following:
Please double check your steps and let me know what happen. I still see NO error in the current code as it works great 😄 |
line 359 of libraries/joomla/updater/updater.php |
Yes that is correct. As stated above please clear the cached updates. Bevor testing the frontend |
What do you mean?
Why do you say this? |
There is no need to save the new update in the database if it exists. You need to clear the update cache bevor the update gets checked. There is also a cache time that take into account. |
Sounds like you don't understand the functionality. This is not about saving update information. This is about determining whether there is a new update to be notified about.
That is incorrect! The whole purpose of this check is to see whether in mean time there have been new updates. So, on a J350 with cached info about J351, it overrules it with J360 because that is the most recent. At least for J350 because the update server is set up to go through J360 when going to J362. |
I have tested this item 🔴 unsuccessfully on bc57d35 I installed an older joomla-version (3.7.4). Without applying the patch I received the update notification via email, that 3.7.5 is available. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/11575. |
@sovainfo Can you check if the issue has been resolved in the meantime for you? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/11575. |
Lost interest in Joomla. |
Summary of Changes
Changing condition from GT to GE so it detects the update and sends the mail
Testing Instructions
Apply fix and check receiving the notification